package com.wedu.modules.dss.controller;

import com.wedu.common.utils.R;
import com.wedu.modules.dss.service.DssDeviceProductionService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/dss/production")
public class DssDeviceProductionController {
    @Autowired
   private DssDeviceProductionService dssDeviceProductionService;
    @RequestMapping("/list")
    @RequiresPermissions("dss:production:list")
    public R list(@RequestParam Map<String,Object> params){
        return R.ok().put("page",dssDeviceProductionService.queryDeviceProduction(params));
    }
}
